import  request from "@/utils/request"

enum API{
    ARTICLES="/mp/articles",//获取文章列表
}

interface getArticlesType{
    status?: number,
    channel_id?: number|string,
    begin_pubdate?: string,
    end_pubdate?: string,
}

export  const getArticles =(data:getArticlesType)=>{
    return request.get(API.ARTICLES,{params:data});
 }

 export  const getArticlesInfo =(data:string)=>{
    return request.get(API.ARTICLES+`/${data}`);
 }
